package com.lanqiao.javaparkinglot.service.impl;

import com.lanqiao.javaparkinglot.dao.YghsDao;
import com.lanqiao.javaparkinglot.entity.Yghs;
import com.lanqiao.javaparkinglot.service.YghsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class YghsServiceImpl implements YghsService {

    @Autowired
    YghsDao yghsDao;
    @Override
    public List<Yghs> findYghs() {
        List<Yghs>yghsList=yghsDao.findYghs();
        return yghsList;
    }

    @Override
    public void addyghs(Yghs yghs) {
        yghsDao.addyghs(yghs);
    }

    @Override
    public void updateyghs(Yghs yghs) {
        yghsDao.updateyghs(yghs);
    }

    @Override
    public void deleteyghs(Long hsy_id) {
        yghsDao.deleteyghs(hsy_id);
    }
}
